// 运维管理
import { getAction, deleteAction, putAction, postAction, httpAction } from '@/api/manage'

// 版本控制--新增
const addOperate = params => postAction('/sys/pProjectVersion/add', params)

// 版本控制--下载
const uploadVersion = params => getAction('/sys/pProjectVersion/uploadVersion', params)

// 版本控制--详情
const queryById = params => getAction('sys/pProjectVersion/queryById', params)

// 版本控制--详情新增
const addVersion = params => postAction('sys/pProjectVersion/addVersion', params)

// 版本控制--详情删除
const addVersionDetailDelete = params => deleteAction('sys/pProjectVersion/delete', params)

// 版本控制--详情编辑
const addVersionDetailEdit = params => putAction('sys/pProjectVersion/edit', params)

// 版本控制--详情生效版本
const changeVersion = params => getAction('sys/pProjectVersion/changeVersion', params)

export {
  addOperate,
  uploadVersion,
  queryById,
  addVersion,
  addVersionDetailDelete,
  addVersionDetailEdit,
  changeVersion
}
